package org.yate.oa.view;

import org.apache.commons.lang3.StringUtils;

/**
 * 公用基础参数
 * @author zb
 *
 */
public class CommonParm {
	//容量 直接传具体值多个的话以逗号分割数据库存的是varchar
	protected String kva;
	//高压  [10 ,  20]  
	protected Integer highVol;
	//低压 【0.4 ,  0.23】
	protected Integer lowVol;
	//相数  【单相，三相】
	protected Integer boxNum;
	
	//高压配置型式 ['终端型','环网型']
	protected Integer highVolConf;
	
	//变压器配置型式 ['欧式配置','美式配置']
	protected Integer voltageConf;
	
    final static String score[]={"50","80","100","125","160","200","250","315","400","500","630","800","1000","其他"};
	
	public String getKva() {
		if(StringUtils.isNotBlank(kva)){
			return score[Integer.valueOf(kva)];
		}
		return "";
	}
	public void setKva(String kva) {
		this.kva = kva;
	}
	public Integer getHighVol() {
		return highVol;
	}
	public void setHighVol(Integer highVol) {
		this.highVol = highVol;
	}
	public Integer getLowVol() {
		return lowVol;
	}
	public void setLowVol(Integer lowVol) {
		this.lowVol = lowVol;
	}
	public Integer getBoxNum() {
		return boxNum;
	}
	public void setBoxNum(Integer boxNum) {
		this.boxNum = boxNum;
	}
	public Integer getHighVolConf() {
		return highVolConf;
	}
	public void setHighVolConf(Integer highVolConf) {
		this.highVolConf = highVolConf;
	}
	public Integer getVoltageConf() {
		return voltageConf;
	}
	public void setVoltageConf(Integer voltageConf) {
		this.voltageConf = voltageConf;
	}
}
